package com.woniuxy.daos;

import com.woniuxy.entitys.TbBed;
import com.woniuxy.entitys.TbBedExample;
import java.util.List;

import com.woniuxy.entitys.TbMalfunction;
import org.apache.ibatis.annotations.Param;

public interface TbBedDao {
    long countByExample(TbBedExample example);

    int deleteByExample(TbBedExample example);

    int deleteByPrimaryKey(Integer bid);

    int insert(TbBed record);

    int insertSelective(TbBed record);

    List<TbBed> selectByExample(TbBedExample example);

    TbBed selectByPrimaryKey(Integer bid);

    int updateByExampleSelective(@Param("record") TbBed record, @Param("example") TbBedExample example);

    int updateByExample(@Param("record") TbBed record, @Param("example") TbBedExample example);

    int updateByPrimaryKeySelective(TbBed record);

    int updateByPrimaryKey(TbBed record);

    List<TbBed> selectFreeBed(@Param("hid") Integer hid,@Param("did") Integer did);

    List<TbBed> bedDetailsByDid(Integer did);

    List<TbBed> getBed();


    List<TbBed> getBidByHid(Integer hid);
    List<TbBed> selectSome(@Param("bnum")String bnum, @Param("hid")Integer hid, @Param("did") Integer did, @Param("status") Integer status);

    List<TbBed> selBedByHidAndDid(@Param("hid") Integer hid,@Param("did") Integer did);
    List<TbBed> getAllBedByDid(@Param("did") Integer did, @Param("status") Integer status);

    List<TbBed> getAllBedByFuzz(@Param("did") Integer did, @Param("search")String search);

    TbBed getBedById(Integer bid);
    int getallBed();

    int updateStatusToZero(@Param("bid") Integer bid);
    int updateStatusToTwo(@Param("bid") Integer bid);

}